<template>
	<view>
		<view class="head-nav">
			<view :class="navIndex==1?'activite':''" @click="checkIndex(1)">银行卡</view>
			<view :class="navIndex==2?'activite':''" @click="checkIndex(2)">支付宝</view>
		</view>
		<view class="content" v-if="navIndex==1">
			<view class="item">
				<label>持卡人</label>
				<input type="text" placeholder="请输入持卡人姓名" v-model="cardname" placeholder-class="placeholder"/>
			</view>
			<view class="item">
				<label>银行卡号</label>
				<input type="text" placeholder="请输入银行卡号" v-model="cardNum" placeholder-class="placeholder"/>
			</view>
			<view class="item">
				<label>所属银行</label>
				<input type="text" placeholder="请输入所属银行" v-model="bank" placeholder-class="placeholder"/>
			</view>
			<view class="item">
				<label>所属支行名</label>
				<input type="text" placeholder="请输入银行支行名" v-model="bankname" placeholder-class="placeholder"/>
			</view>
		</view>
		<view v-if="navIndex==1"class="toast">
			<text>*此银行卡账户仅支持储蓄卡</text>
		</view>
		<view class="contentt" v-if="navIndex==2">
			<view class="item">
				<label>姓名</label>
				<input type="text" placeholder="请输入您的姓名" v-model="name" placeholder-class="placeholder"/>
			</view>
			<view class="item">
				<label>支付宝账户</label>
				<input type="text" placeholder="请输入支付宝账号" v-model="Alipay" placeholder-class="placeholder"/>
			</view>
		</view>
	    <view class="footer">
			<view class="btn">
				<button type="text">确定</button>
			</view>
			<view class="msg">
				<text>请准确填写您的支付宝账户信息，此账户信息仅提供提现使用.</text>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data(){
			return {
				navIndex:1,
				cardname:'',
				cardNum:'',
				bank:'',
				bankname:'',
				name:'',
				Alipay:''
			}
		},
		methods:{
			checkIndex(index){
				this.navIndex = index
			}
		}
	}
</script>
<style>
	page{
		background: rgb(245, 245, 245);
	}
	.head-nav {
		background: #fff;
		width: 490rpx;
		height: 80rpx;
		line-height: 80rpx;
		display: flex;
		padding: 0rpx 145rpx;
		justify-content: space-between;
		font-size: 30rpx;
	}
	.activite{
	    font-weight: bold;
	    border-bottom: 6rpx solid #FEB140;
	}
	.content {
		width: 690rpx;
		height: 386rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		margin: 30rpx 30rpx;
		padding-top: 44rpx;
	}  
	.contentt {
		width: 690rpx;
		height: 193rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		margin: 30rpx 30rpx;
		padding-top: 44rpx;
	}
	.item {
		display: flex;
		flex-direction: row;
		align-items: center;
		margin-left: 30rpx;
		margin-bottom: 60rpx;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		 border-bottom: 1px solid #E5E5E5; 
	}
	.item label {
		font-size: 28rpx;
	}
	.item input {
		margin-left: 30rpx;
	}
	.placeholder {
		font-size: 24rpx;
	}
	.toast {
		font-size: 24rpx;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		color: #FF4141;
		margin-left: 30rpx;
	}
	.footer {
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
	}
	.btn {
		width: 690rpx;
		height: 80rpx;
		margin: 30rpx 30rpx;
	}
	.btn button{
		background: #FEB140;
		font-size: 32rpx;
		color: #1A1A1A;
		border-radius: 80rpx;
	}
	.msg {
		font-size: 24rpx;
		color: #666666;
		text-align: center;
	}
</style>
